n% = n% - 15 'don't dimension anything for the file comment.
'now that we know how big to dim the arrays, do it.
DIM SHARED mf1 AS MultiFieldType, mf1FieldName$(1 TO n%), mf1FieldCap%(1 TO n%), mf1FieldValue$(1 TO n%), mf1FieldMask$(1 TO n%, 1 TO 2), mf1FieldLen%(1 TO n%), mf1FieldPos%(1 TO n%, 1 TO 2), mf1FieldHelp$(1 TO n%), mf1Title$, mf1Prompt$, _
mf1ScrollFileSpec$(1 TO n%)
'don't get lost in video pages just yet
SCREEN , , 0, 0
EditCustomerInfo
EndProg
REM $STATIC
SUB EditCustomerInfo
filespec$ = "0001.dat"
GetLinesInFile filespec$, n%
n% = n% - 15 'don't count the file "header" as field items
'field information is stored in data files to save memory
filenum% = FREEFILE
OPEN filespec$ FOR INPUT AS filenum%
FOR p2% = 1 TO 15 ''trash the file comments
LINE INPUT #1, trash$
NEXT p2%
FOR p1% = 1 TO n% 'read the comma delimited data from the file